Include(FetchContent)

set(BUILD_SHARED_LIBS on)
FetchContent_Declare(
  Catch2
  GIT_REPOSITORY https://github.com/catchorg/Catch2.git
  GIT_TAG        v3.1.0
)

FetchContent_MakeAvailable(Catch2)

add_executable(model
    model.cpp
    ../src/model/DHT11.cpp
)
include_directories("../src")
target_link_libraries(model PRIVATE Catch2::Catch2WithMain)
target_compile_features(model PUBLIC cxx_std_17)
set_target_properties(model PROPERTIES
    CXX_STANDARD 17
    CXX_STANDARD_REQUIRED YES
    CXX_EXTENSIONS NO
)
